
import Cookies from 'js-cookie'

const TokenKey = 'login_cur'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)

}

export function removeToken() {
  return Cookies.remove(TokenKey)

}


// import Cookies from 'js-cookie'

// const TokenKey: string = 'login_cur'

// export function getToken(): string | undefined {
//   return Cookies.get(TokenKey)
// }

// export function setToken(token: string): void {
//   return Cookies.set(TokenKey, token)
// }

// export function removeToken(): void {
//   return Cookies.remove(TokenKey)
// }

